package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQuery;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

public interface ITravelCommendService {
    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(TravelCommendQuery qo);

    /**
     * 保存和修改推荐游记
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * 删除推荐
     * @param id
     */
    void deleteById(Long id);

    /**
     * 查询周推荐的游记
     * @param qo
     */
    PageInfo queryCommend(TravelCommendQuery qo);


}
